var v1 = document.querySelector('#v1');
var v2 = document.querySelector('#v2');
var btn = document.querySelector('#btn');
var res = document.querySelector('#res');

//导入CSS文件
require('../css/site.css');
//导入SCSS文件
require('../css/site1.scss');

//导入LESS文件
require('../css/site2.less');

btn.onclick=function(){

    var v1value = parseFloat(v1.value);
    var v2value = parseFloat(v2.value);


    var add = require('./calc.js');

    res.value = add(v1value,v2value);

}